<?php

class TaobaokeHookHelper extends AppHelper {

    public $helpers = array('Html',);

	public function listToolbar($param){
		if($param['model']=='Taobaoke'){
		//$toolbars = '<li class="NewDocument">'.$this->Html->link(__('Auto Save Item'), array('action'=>'saveProducts','model'=> $target_model,'0','1'),array('target'=>'_blank','escape'=>false)).'</li>';
			$toolbars .= '<li class="NewDocument">'.$this->Html->link(__('Choose From TOP'), array('action'=>'toplist','model'=> $param['target_model']),array('target'=>"_blank",'escape'=>false)).'</li>';
                // 'onclick'=>'return open_dialog({title:\''.__('Choose From TOP').'\'},this.href,reloadGrid_'.$pageID.');',
		}
		return  $toolbars;
	}
    
}
?>